<body style="background:linear-gradient(red,yellow); background-attachment:fixed;">
    Overlay fullscreen video should remove fixed background layer.
    <video id="video"></video>
    <script>
        if (window.internals)
            runPixelTests = true;
    </script>
    <script src="../../../fullscreen/full-screen-test.js"></script>
    <script src="../../../media/media-file.js"></script>
    <script src="../../../media/media-controls.js"></script>
    <script>
        var video = document.getElementById('video');
        video.requestVideoFrameCallback(startFullscreenTest);
        setSrcById("video", "../../../media/content/test.ogv");

        function startFullscreenTest() {
            enableTestMode(video);
            // Bail out early if the full screen API is not enabled or is missing:
            if (Element.prototype.webkitRequestFullScreen == undefined) {
                logResult(false, "Element.prototype.webkitRequestFullScreen == undefined");
                endTest();
            } else {
                waitForEventOnceAndEnd(document, 'webkitfullscreenchange');
                runWithKeyDown(function(){video.webkitRequestFullScreen()});
            }
        }
    </script>
</body>
